package com.xyh.student.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.xyh.student.entity.Question;
import org.springframework.stereotype.Repository;

@Mapper
public interface QuestionDao {
    public List<Question> findAllQuestion();

    public int insertQuestion(Question question);

    public List<Question> findQuestionByLid(Integer lid);

    public List<Question> findQuestionByLidList(int[] lids,int type);

    public List<Question> findQuestionByType(Integer type);

    public Question findQuestionByQid(int qid);

    public int insertQuestionList(List<Question> questions);

    public int deleteById(int qid);
}
